package juego;

import org.w3c.dom.Document;
import org.w3c.dom.Element;

public class CazaAdaptable extends Caza {

	public CazaAdaptable(int x, int y) {
		
		super(x,y, new ArmaTorpedoAdaptable());
	}
	
	public Element getElement(Document doc) {
		
		Element nave = doc.createElement("CazaAdaptable");
		
		this.persistirArmado(doc, nave);
		
		return nave;
	}
	
	public static CazaAdaptable fromElement(Element element ){
		
		  CazaAdaptable nave = new CazaAdaptable(-1,-1);
		  Armado.recuperarArmado(element, nave);
		  return nave;
	}
}

